package com.ruoyi.youtian.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 触发预警记录详情对象 t_early_warning_record_detail
 * 
 * @author ruoyi
 * @date 2022-10-17
 */
@Data
public class TEarlyWarningRecordDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 场景编号 */
    @Excel(name = "场景编号")
    private Long sceneId;

    private String sceneName;

    private String warningName;

    /** 预警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warningTime;

    /** 预警说明 */
    @Excel(name = "预警说明")
    private String warningRemark;

    /** 故障发生率 */
    @Excel(name = "故障发生率")
    private BigDecimal failureRate;

    /** 故障增长率 */
    @Excel(name = "故障增长率")
    private BigDecimal failureGrowthRate;

    /** 预警方式 0同比 1环比 */
    @Excel(name = "预警方式 0同比 1环比")
    private String warningType;

    private String warningTypeName;

    /** 预警编码 */
    @Excel(name = "预警编码")
    private String warningCode;

    /** 范围查询最小值 */
    @Excel(name = "范围查询最小值")
    private Integer mindata;

    /** 范围查询最大值 */
    @Excel(name = "范围查询最大值")
    private Integer maxdata;


    public TEarlyWarningRecordDetail() {
    }

    public TEarlyWarningRecordDetail( Long id, Long sceneId, String sceneName, String warningName, Date warningTime, String warningRemark, BigDecimal failureRate, BigDecimal failureGrowthRate, String warningType, String warningTypeName, String warningCode, Integer mindata, Integer maxdata) {
        this.id = id;
        this.sceneId = sceneId;
        this.sceneName = sceneName;
        this.warningName = warningName;
        this.warningTime = warningTime;
        this.warningRemark = warningRemark;
        this.failureRate = failureRate;
        this.failureGrowthRate = failureGrowthRate;
        this.warningType = warningType;
        this.warningTypeName = warningTypeName;
        this.warningCode = warningCode;
        this.mindata = mindata;
        this.maxdata = maxdata;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return sceneId
     */
    public Long getSceneId() {
        return sceneId;
    }

    /**
     * 设置
     * @param sceneId
     */
    public void setSceneId(Long sceneId) {
        this.sceneId = sceneId;
    }

    /**
     * 获取
     * @return sceneName
     */
    public String getSceneName() {
        return sceneName;
    }

    /**
     * 设置
     * @param sceneName
     */
    public void setSceneName(String sceneName) {
        this.sceneName = sceneName;
    }

    /**
     * 获取
     * @return warningName
     */
    public String getWarningName() {
        return warningName;
    }

    /**
     * 设置
     * @param warningName
     */
    public void setWarningName(String warningName) {
        this.warningName = warningName;
    }

    /**
     * 获取
     * @return warningTime
     */
    public Date getWarningTime() {
        return warningTime;
    }

    /**
     * 设置
     * @param warningTime
     */
    public void setWarningTime(Date warningTime) {
        this.warningTime = warningTime;
    }

    /**
     * 获取
     * @return warningRemark
     */
    public String getWarningRemark() {
        return warningRemark;
    }

    /**
     * 设置
     * @param warningRemark
     */
    public void setWarningRemark(String warningRemark) {
        this.warningRemark = warningRemark;
    }

    /**
     * 获取
     * @return failureRate
     */
    public BigDecimal getFailureRate() {
        return failureRate;
    }

    /**
     * 设置
     * @param failureRate
     */
    public void setFailureRate(BigDecimal failureRate) {
        this.failureRate = failureRate;
    }

    /**
     * 获取
     * @return failureGrowthRate
     */
    public BigDecimal getFailureGrowthRate() {
        return failureGrowthRate;
    }

    /**
     * 设置
     * @param failureGrowthRate
     */
    public void setFailureGrowthRate(BigDecimal failureGrowthRate) {
        this.failureGrowthRate = failureGrowthRate;
    }

    /**
     * 获取
     * @return warningType
     */
    public String getWarningType() {
        return warningType;
    }

    /**
     * 设置
     * @param warningType
     */
    public void setWarningType(String warningType) {
        this.warningType = warningType;
    }

    /**
     * 获取
     * @return warningTypeName
     */
    public String getWarningTypeName() {
        return warningTypeName;
    }

    /**
     * 设置
     * @param warningTypeName
     */
    public void setWarningTypeName(String warningTypeName) {
        this.warningTypeName = warningTypeName;
    }

    /**
     * 获取
     * @return warningCode
     */
    public String getWarningCode() {
        return warningCode;
    }

    /**
     * 设置
     * @param warningCode
     */
    public void setWarningCode(String warningCode) {
        this.warningCode = warningCode;
    }

    /**
     * 获取
     * @return mindata
     */
    public Integer getMindata() {
        return mindata;
    }

    /**
     * 设置
     * @param mindata
     */
    public void setMindata(Integer mindata) {
        this.mindata = mindata;
    }

    /**
     * 获取
     * @return maxdata
     */
    public Integer getMaxdata() {
        return maxdata;
    }

    /**
     * 设置
     * @param maxdata
     */
    public void setMaxdata(Integer maxdata) {
        this.maxdata = maxdata;
    }

    public String toString() {
        return "TEarlyWarningRecordDetail{serialVersionUID = " + serialVersionUID + ", id = " + id + ", sceneId = " + sceneId + ", sceneName = " + sceneName + ", warningName = " + warningName + ", warningTime = " + warningTime + ", warningRemark = " + warningRemark + ", failureRate = " + failureRate + ", failureGrowthRate = " + failureGrowthRate + ", warningType = " + warningType + ", warningTypeName = " + warningTypeName + ", warningCode = " + warningCode + ", mindata = " + mindata + ", maxdata = " + maxdata + "}";
    }
}
